package com.happy.cat.project.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.happy.cat.project.system.domain.UserBalancePetValueDetail;

import java.util.Date;
import java.util.Map;

/**
 * 账号余额明细(猫粮)Service接口
 *
 * @author verne
 * @date 2020-08-13
 */
public interface IUserBalancePetValueDetailService extends IService<UserBalancePetValueDetail> {

    /**
     * 获取用户的消费金额
     * @param id
     * @return
     */
    Double amountByAccountId(Long id);

    /**
     * 获取用户的充值金额
     * @param id
     * @return
     */
    Double rechargeByAccountId(Long id);

    /**
     * 获取用户的首充时间
     * @param id
     * @return
     */
    Date firstRechargeTime(Long id);
}
